<?php $format = Yii::app()->format; ?>

<div class="view">

	<div>
		<?php
		$properties = array(
			'items'=>$data->getMenu($this->action->id, true),
			'htmlOptions'=>array(
				'class'=>'operations',
			),
			'encodeLabel'=>false,
		);
		$this->widget('zii.widgets.CMenu', $properties);
		?>
	</div>
	
	<hr />

	<?php
	$src = $data->photoBehavior->getFileUrl('thumb');
	$alt = 'Photo';
	$htmlOptions = array(
		'class'=>'stroke round column',
	);
	echo CHtml::image($src, $alt, $htmlOptions);
	?>
	
	<div>
		<b><?php echo CHtml::encode($data->getAttributeLabel('name')); ?>:</b>
		<?php
		echo CHtml::encode(CHtml::encode($data->name));
		?>
	</div>

	<div>
		<b><?php echo CHtml::encode($data->getAttributeLabel('code')); ?>:</b>
		<?php echo CHtml::encode($data->code); ?>
	</div>

	<?php /*
	  <b><?php echo CHtml::encode($data->getAttributeLabel('gender')); ?>:</b>
	  <?php echo CHtml::encode($data->gender); ?>
	  <br />

	  <b><?php echo CHtml::encode($data->getAttributeLabel('matrimony')); ?>:</b>
	  <?php echo CHtml::encode($data->matrimony); ?>
	  <br />

	  <b><?php echo CHtml::encode($data->getAttributeLabel('birthDate')); ?>:</b>
	  <?php echo CHtml::encode($data->birthDate); ?>
	  <br />

	  <b><?php echo CHtml::encode($data->getAttributeLabel('employmentStatus')); ?>:</b>
	  <?php echo CHtml::encode($data->employmentStatus); ?>
	  <br />

	  <b><?php echo CHtml::encode($data->getAttributeLabel('employmentDate')); ?>:</b>
	  <?php echo CHtml::encode($data->employmentDate); ?>
	  <br />

	  <b><?php echo CHtml::encode($data->getAttributeLabel('expiredDate')); ?>:</b>
	  <?php echo CHtml::encode($data->expiredDate); ?>
	  <br />

	  <b><?php echo CHtml::encode($data->getAttributeLabel('unemploymentDate')); ?>:</b>
	  <?php echo CHtml::encode($data->unemploymentDate); ?>
	  <br />
	 */ ?>

	<div>
		<b><?php echo CHtml::encode($data->getAttributeLabel('position')); ?>:</b>
		<?php echo CHtml::encode($data->position); ?>
	</div>

	<div>
		<b><?php echo CHtml::encode($data->getAttributeLabel('division')); ?>:</b>
		<?php echo CHtml::encode($data->division); ?>
	</div>

	<div>
		<b><?php echo CHtml::encode($data->getAttributeLabel('group')); ?>:</b>
		<?php echo CHtml::encode($data->group); ?>
	</div>

	<div>
		<b><?php echo CHtml::encode($data->getAttributeLabel('supervisorId')); ?>:</b>
		<?php
		if ($data->supervisor) {
			echo CHtml::encode($data->supervisor->name);
		}
		?>
	</div>

	<div>
		<?php echo $format->formatNText($data->address); ?>
	</div>

	<div>
		<?php echo $format->formatEmail($data->email); ?>
	</div>

	<div class="clear"></div>
	
</div>